from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from stw_app.views import OrderPage, UserInfo, Details, Users, Register
from stw_app.views import OrderPage, Home
from stw_app.views import UserOrders
from stw_app.views import ChatPage
from stw_app.views import Map

urlpatterns = [
    path('admin/', admin.site.urls),
    # 订单相关
    path('order/',OrderPage.get_orders),
    path('take_order/',OrderPage.take_order),
    path('submit_order/',OrderPage.submit_order),
    path('userInfo/',UserInfo.user_info,name='userInfo'),
    path('userInfos/',UserInfo.user_infos),
    path('updateuser/',UserInfo.updateuser,name='updateuser'),
    path('get_provinces/',UserInfo.get_provinces),
    path('get_districts/',UserInfo.get_districts),
    path('get_cities/',UserInfo.get_cities),
    path('complete_order/', UserOrders.complete_order),
    path('cancel_order/', UserOrders.cancel_order),
    path('delete_order/', UserOrders.delete_order),
    path('comment/', UserOrders.comment),
    path('progressing_orders_dict/', UserOrders.progressing_orders_dict),
    path('published_orders_dict/', UserOrders.published_orders_dict),
    path('recieved_orders_dict/', UserOrders.recieved_orders_dict),
    path('all_orders_dict/', UserOrders.all_orders_dict),
    path('newest_order/', Home.newest_order),
    path('newest_orders/', Home.newest_orders),
    path('price_order/',Home.price_order),
    path('nearest_order/',Home.nearest_order),
    path('image_code/',Home.image_code),
    path('log_in/',Home.log_in),
    path('get_code/',Home.get_code),
    # path('logup/',Home.logup),
    path('nearest_5/',Home.nearest_5),
    path('sort_and_filter/',Home.sort_and_filter),
    path('give_recommend/',Home.give_recommend),
    path('give_provinces/',Home.give_provinces),
    path('give_cities/',Home.give_cities),
    path('give_districts/',Home.give_districts),
    path('sort_and_filter/',Home.sort_and_filter),
    path('get_place_name/',Map.get_place_name),
    # 发送消息相关
    path('get_group/', ChatPage.get_group),
    path('get_userid/', ChatPage.get_userid),
    path('get_order/', ChatPage.get_order),
    path('get_chaters/', ChatPage.get_chaters),
    path('get_senderid/', ChatPage.get_senderid),
    path('update_top/', ChatPage.update_top),
    path('msg_poll/', ChatPage.msg_poll),
    path('read_msg/', ChatPage.read_msg),
    # 订单详情相关
    path('get_details/', Details.get_details),
    path('get_customer/', Details.get_customer),
    # 名片相关
    path('get_comments/', Users.get_comments),
    path('get_releasers/', Users.get_releasers),
    path('get_orders/', Users.get_orders),
    # 登陆注册相关
    path('varification/',Register.check),
    path('max/', UserOrders.max),
    path('get_any_group/',ChatPage.get_any_group),
    # 举报
    path('report/',Users.report),

]
